package io.wit.config;

import java.io.Serializable;

/**
 * 全局统一的配置变量及标识码-客户端和服务器端
 * @提示 code为200正常;msg的提示信息
 * @作者 田应平
 * @版本 v1.0
 * @创建时间 2017年1月11日 10:11:29
 * @QQ号码 444141300
 * @官网 http://www.fwtai.com
*/
public final class ConfigFile implements Serializable{

    public final static String api_v10 = "/api/v1.0/";

    public final static String superUser = "admin";//超级管理员

    /**用于自定义返回信息*/
    public final static int code198 = 198;

    /**操作失败*/
    public final static int code199 = -1;
    /**操作失败*/
    public final static String msg199 = "操作失败";
    /**操作成功*/
    public final static int code200 = 0;
    /**操作成功*/
    public final static String msg200 = "操作成功";
    /**暂无数据*/
    public final static int code201 = 201;
    /**暂无数据*/
    public final static String msg201 = "暂无数据";

    /**无操作权限*/
    public final static int code401 = 401;
    /**无操作权限*/
    public final static String msg401 = "无操作权限";

    public final static String record = "record";

    /**分页的区间标识符*/
    public final static String section = "section";
    /**Oracle数据库分页的<=限制*/
    public final static String KEYROWS = "KEYROWS";
    /**Oracle数据库分页的>=限制*/
    public final static String KEYRN = "KEYRN";
    /**自定义全局变量登录者的权限信息*/
    public final static String LOGIN_PERMISSION = "login_permission";
    /**自定义全局变量最高权限及最最超级系统管理员admin*/
    public final static String KEY_SUPER = "admin";
    /**自定义全局变量登录者的账号*/
    public final static String LOGIN_PAGE = "/login.html";
    /**定义全局变量图形验证码标识,便于登录验证图形验证码*/
    public final static String imageCode = "imageCode";
    /**未登录或登录超时跳转到的jsp页面*/
    public final static String TIMEOUT = "timeout";
    /**统一全局的total总条数|总记录数json关键字key响应给客户端*/
    public final static String total = "total";
    /**统一全局的totalPage总页数json关键字key响应给客户端*/
    public final static String totalPage = "totalPage";
    /**统一全局的Easyui里的datagrid数据返回json关键字key响应给客户端*/
    public final static String rows = "rows";
    /**统一全局的code的状态码json关键字key关键字响应给客户端*/
    public final static String code = "code";
    /**统一全局的msg提示消息json关键字key响应给客户端*/
    public final static String msg = "msg";
    /**统一全局的pageSize每页大小json关键字key响应给客户端或作为Mybatis的分页参数*/
    public final static String pageSize = "pageSize";
    /**统一全局的result返回数据(含分页的数据)json关键字key响应给客户端*/
    public final static String data = "data";
    /**返回权限数据json关键字key响应给客户端*/
    public final static String permissions = "permissions";
    /**datatable的总记录数*/
    public final static String recordsFiltered = "recordsFiltered";
    /**datatable的总记录数*/
    public final static String recordsTotal = "recordsTotal";
    /**统一全局的current当前页json关键字key响应给客户端*/
    public final static String current = "current";
    /**分页的默认大小*/
    public final static int size_default = 50;
    /**统一全局的分页技术json关键字key响应给客户端*/
    public final static String paging_error_msg001 = "分页参数有误";
    /**统一全局文件上传目录-一般文件目录*/
    public final static String dir_file = "file";
    /**拦截器表达式,配置不拦截的url资源,以括号(xxx)什么开头的都不拦截;即不对匹配该值的访问路径拦截（正则）*/
    public final static String expression = ".*/((app)|(weChat)|(api)).*";
}